package name.marz.to.go.ahg.SMBCVisa;

import name.marz.to.go.ahg.core.AutoGetterHttpClient;
import name.marz.to.go.ahg.core.AutoGetterRedirectStrategy;

import org.apache.http.client.params.ClientPNames;
import org.apache.http.client.params.CookiePolicy;
import org.apache.http.params.CoreProtocolPNames;

public class SMBCVisaClient extends AutoGetterHttpClient {
	private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko)";
	/**
	 * 
	 */
	public SMBCVisaClient() {
		super();
		super.setDefaultCharset("UTF-8");
		getParams().setParameter(
				ClientPNames.COOKIE_POLICY, CookiePolicy.BROWSER_COMPATIBILITY);
		getParams().setParameter(CoreProtocolPNames.USER_AGENT, USER_AGENT);
		getParams().setParameter(ClientPNames.HANDLE_REDIRECTS, true);
		getParams().setBooleanParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);
		super.setRedirectStrategy(new AutoGetterRedirectStrategy());
	}
}
